import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { InAppBrowser } from '@ionic-native/in-app-browser';

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})

export class HomePage {

  constructor(
    public navCtrl: NavController, 
    private iab: InAppBrowser,) {

  }

  public goTsp = () => {
    /* let contactModal = this.modalCtrl.create(Profile);
    contactModal.present(); */
    const browser = this.iab.create('http://tsp.tulindev.com:85', '_blank', 'location=no,hardwareback=no, closebuttoncaption=返回智能管家');
  }

}
/* @Component({
  template:`<ion-header>
  <ion-toolbar>
    <ion-title>
      Description
    </ion-title>
    <ion-buttons start>
      <button ion-button>
        <span ion-text color="primary" showWhen="ios">Cancel</span>
        <ion-icon name="md-close" showWhen="android, windows"></ion-icon>
      </button>
    </ion-buttons>
  </ion-toolbar>
</ion-header>
  <ion-content>
   
  </ion-content>
`
})
export class Profile {

  constructor( private iab: InAppBrowser) {
    // const browser = this.iab.create('https://e.quanzhuejia.com', '_self', 'location=no')
  }
 
 }
 */